package peer

import "sync"

type Session struct {
	Conn       Connection
	data       map[string]interface{}
	rwDataLock sync.RWMutex
}


func NewSession(conn Connection) *Session {
	s := &Session{
		Conn: conn,
		data: make(map[string]interface{}),
	}
	return s
}

func (s *Session) GetId() int64 {
	return s.Conn.ID()
}